Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Apache Spark Interview Questions and Answers

Question: Explain the role of the Spark Driver in a Spark application.
Answer: The Spark Driver is the program that runs the main() function and creates the SparkContext. It coordinates the execution of tasks on the Spark Executors and collects results from them.

Example:

object MyApp {
  def main(args: Array[String]): Unit = {
    val sc = new SparkContext("local", "MyApp")
  }
}
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook